package org.subject.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.subject.dao.FacultyMapper;
import org.subject.entity.Faculty;
import org.subject.service.FacultyService;

import java.util.List;

/**
 * Created by kai on 2017/5/4.
 */
@Service
public class FacultyServiceImpl implements FacultyService {
    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private FacultyMapper facultyMapper;

    /**
     * 查询所有的院系
     *
     * @return
     */
    public List<Faculty> selectAllFaculty() {
        return facultyMapper.selectAllFaculty();
    }
}
